package com.biz.primus.management.depot;

import com.biz.primus.account.config.CasConfig;
import com.biz.primus.account.security.HttpSecurityConfig;
import com.biz.primus.management.base.config.BaseConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;

/**
 * @Auther JKLiues
 * @Date 2017/9/21
 */
@SpringCloudApplication
@Import(BaseConfiguration.class)
@EnableFeignClients
public class DepotManagementApplication extends SpringBootServletInitializer implements EmbeddedServletContainerCustomizer {

    public static void main(String[] args) {
        new SpringApplicationBuilder().web(true).run(args);
    }

    @Override
    public void customize(ConfigurableEmbeddedServletContainer container) {
    }

    @Bean
    public HttpSecurityConfig getHttpSecurityConfig(){
        return httpSecurity -> {

        };
    }
}
